.message {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 8px;
}

.user {
  background: #f0f2f5;
  margin-left: 20%;
}

.assistant {
  background: #e6f7ff;
  margin-right: 20%;
}

.links {
  margin-top: 12px;
}

.tags {
  margin-top: 12px;
}

.actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.messageWrapper {
  display: flex;
  margin-bottom: 20px;
  gap: 12px;
}

.userMessage {
  justify-content: flex-end;
}

.aiMessage {
  flex-direction: row;
}

.avatar {
  flex-shrink: 0;
}

.messageContent {
  max-width: 80%;
}

.userMessage .messageContent > .messageText {
  background: #e6f7ff;
}

.messageText {
  padding: 12px 16px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 24px;
}

.messageTime {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 4px;
}

.relatedInfo {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.relatedCard {
  background: rgba(255, 255, 255, 0.8) !important;
}

.tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.graphCard {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.8) !important;
}

.loadingWrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.loadingText {
  color: #666;
  font-size: 14px;
}